<cfcomponent extends="org.cfcunit.framework.TestCase">


  <cffunction name="setUp" returntype="void" access="public">
			<cfset coldSpring = createObject( 'component', 'coldspring.beans.DefaultXmlBeanFactory').init() />
			<cfset coldSpring.loadBeansFromXmlFile("/actionpacks/projectshen/tests/cs/projectservice.test.cs.xml") />
      <cfset variables.projectService = coldSpring.getBean('projectService') />
   </cffunction>
		
	<cffunction name="testGetProjectById" returntype="void" access="public">
		<cfset var results = variables.projectService.getProjectById(3)>
		<cfset results = isStruct(results)>
		<cfset assertEqualsBoolean(expected="true",actual=results) />
	</cffunction>

	<cffunction name="testGetProjectsQuery" returntype="void" access="public">
		<cfset var results = variables.projectService.getProjectsQuery() />
		<cfset assertComplexValue(results) />
	</cffunction>

	<cffunction name="testGetProjectComponents" returntype="void" access="public">
		<cfset var params = structNew()>
		<cfset var results = "" />
		<cfset params["projectID"] = 1>
		<cfset results = variables.projectService.getProjectComponentsQuery(params) />
		<cfset assertComplexValue(results) />
	</cffunction>

	<cffunction name="testGetProjectMilestones" returntype="void" access="public">
		<cfset var params = structNew()>
		<cfset var results = "" />
		<cfset params["projectID"] = 1>
		<cfset results = variables.projectService.getProjectMilestonesQuery(params) />
		<cfset assertComplexValue(results) />
	</cffunction>

	<cffunction name="testGetProjectPriorities" returntype="void" access="public">
		<cfset var params = structNew()>
		<cfset var results = "" />
		<cfset params["projectID"] = 1>
		<cfset results = variables.projectService.getProjectPrioritiesQuery(params) />
		<cfset assertComplexValue(results) />
	</cffunction>

	<cffunction name="testGetProjectVersions" returntype="void" access="public">
		<cfset var params = structNew()>
		<cfset var results = "" />
		<cfset params["projectID"] = 1>
		<cfset results = variables.projectService.getProjectVersionsQuery(params) />
		<cfset assertComplexValue(results) />
	</cffunction>

<!--- 
	<cffunction name="testXmlRpc" returntype="void" access="public">
		<cfset var results = variables.xmlRpcService.runMethod() />
		<cfset assertComplexValue(results) />
	</cffunction>
 --->				

</cfcomponent>